/* eslint-disable import/first */
import Vue from 'vue'

// 自行构写组件：independent------------------------------------------------------
// 描述卡片组件
// import IndepCardDescribe from '@/components/independent/card/describe/index.vue'
// Vue.component('indep-card-describe', IndepCardDescribe)
// 自行构写组件：independent------------------------------------------------------

// 有依赖的组件：dependent--------------------------------------------------------
// 自动填补
// import DepAutocomplete from '@/components/dependent/autocomplete/autocomplete.vue'
// Vue.component('dep-autocomplete', DepAutocomplete)
// 有依赖的组件：dependent--------------------------------------------------------

// 依赖项目的组件：project---------------------------------------------------------
// 依赖项目的组件：project---------------------------------------------------------

// vant-ui https://youzan.github.io/vant/#/zh-CN/intro
import {
  Button,
  Cell,
  Icon,
  Row, Col,
  Popup,
  Field,
  Picker,
  Dialog,
  Loading,
  Toast,
  Tab, Tabs,
  Tabbar,
  TabbarItem,
  NavBar,
  Swipe,
  SwipeItem,
  List,
  ImagePreview,
  Actionsheet,
  DatetimePicker,
  CellGroup,
  SubmitBar,
  Card,
  Stepper,
  RadioGroup, Radio,
  PasswordInput, NumberKeyboard,
  Collapse, CollapseItem
} from 'vant'

import 'vant/lib/index.css'

// Vue.component('van-button', Button)
// Vue.component('van-cell', Cell)
// Vue.component('van-tabbar', Tabbar)
// Vue.component('van-tabbar-item', TabbarItem)
Vue.use(Button)
Vue.use(Cell)
Vue.use(Icon)
Vue.use(Row).use(Col)
Vue.use(Popup)
Vue.use(Field)
Vue.use(CellGroup)
Vue.use(Picker)
Vue.use(Dialog)
Vue.use(Loading)
Vue.use(Toast)
Vue.use(Tab).use(Tabs)
Vue.use(Tabbar)
Vue.use(TabbarItem)
Vue.use(NavBar)
Vue.use(Swipe).use(SwipeItem)
Vue.use(List)
Vue.use(ImagePreview)
Vue.use(Actionsheet)
Vue.use(DatetimePicker)
Vue.use(SubmitBar)
Vue.use(Card)
Vue.use(Stepper)
Vue.use(RadioGroup).use(Radio)
Vue.use(PasswordInput).use(NumberKeyboard)
Vue.use(Collapse).use(CollapseItem)
// import Vant from 'vant'
// import 'vant/lib/index.css'
// Vue.use(Vant)

// components.forEach(component => {
//   Vue.component(component.name, component);
// })
